<?php

// mbilling/BillingBundle/Entity/ordersOS.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class ordersOS
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=45)
     * @assert\NotBlank
     */
    protected $name;
    
    /**
     * @ORM\Column(type="string", length=45)
     * @assert\NotBlank
     */
    protected $platform;
    
    /**
     * @ORM\Column(type="string", length=200)
     * @assert\NotBlank
     */
    protected $distr_way;

    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }

    public function setPlatform($platform)
    {
        $this->platform = $platform;
    }
    public function getPlatform()
    {
        return $this->platform;
    }

    public function setDistrWay($distr_way)
    {
        $this->distr_way = $distr_way;
    }
    public function getDistrWay()
    {
        return $this->distr_way;
    }

    public function initDefaultEntity()
    {
        $this->setName('Ubuntu Linux');
        $this->setPlatform('x86');
        $this->setDistrWay('/media/backup/ubuntu');
        return $this;
    }
}
?>
